package com.kungfuhacking.wristbandpro.mqtt.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Aaron on 16/3/18.
 */
public class TopicBean implements Parcelable {

    public String topic;
    public String topicName;
    public String topicImg;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.topic);
        dest.writeString(this.topicName);
        dest.writeString(this.topicImg);
    }

    public TopicBean() {
    }

    protected TopicBean(Parcel in) {
        this.topic = in.readString();
        this.topicName = in.readString();
        this.topicImg = in.readString();
    }

    public static final Creator<TopicBean> CREATOR = new Creator<TopicBean>() {
        public TopicBean createFromParcel(Parcel source) {
            return new TopicBean(source);
        }

        public TopicBean[] newArray(int size) {
            return new TopicBean[size];
        }
    };
}
